package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.ShengDatHeatStationData;
import com.seawaterbt.ssm.entity.ShengDatHouseHoldData;
import com.seawaterbt.ssm.mapper.ShengDatHeatStationDataMapper;
import com.seawaterbt.ssm.mapper.ShengDatHouseHoldDataMapper;
import com.seawaterbt.ssm.service.ShengDatHeatStationDataService;
import com.seawaterbt.ssm.service.ShengDatHouseHoldDataService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhf
 * @since 2019-10-31
 */
@Service
public class ShengDatHouseHoldDataServiceImpl extends ServiceImpl<ShengDatHouseHoldDataMapper, ShengDatHouseHoldData> implements ShengDatHouseHoldDataService {

    @DataSource(DataSourceEnum.DB1)
    @Override
    public List<ShengDatHouseHoldData> listAll() {
        return this.list();
    }
}
